/*
 * @Author: 吴世扬 18368095041@163.com
 * @Date: 2024-05-27 11:11:01
 * @LastEditors: wsy
 * @LastEditTime: 2024-07-10 17:31:57
 * @FilePath: /vue3-uniapp/src/store/index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import type { App } from 'vue';
import { createPinia } from 'pinia';

const store = createPinia();

// 全局注册 store
export function setupStore(app: App<Element>) {
    app.use(store);
}

export * from './modules/app';
export * from './modules/user';
export { store };
